package hu.tortavar2.client.place;

import com.google.gwt.place.shared.PlaceTokenizer;
import com.google.gwt.place.shared.Prefix;

public class ProductListPlace extends MainPlace {

	private String productType;
	
	public ProductListPlace(String token){
		this.productType = token;
	}
	
	public String getProductType(){
		return productType;
	}
	
	@Prefix("lv")
	public static class Tokenizer implements PlaceTokenizer<ProductListPlace> {

		@Override
		public ProductListPlace getPlace(String token) {
			return new ProductListPlace(token);
		}

		@Override
		public String getToken(ProductListPlace place) {
			return place.getProductType();
		}
	}
}
